home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntkb.zip / NTKB.EXE / Q105 / 1 / 89.TXT < prev    next >
Text File  |  1993-11-02  |  16KB  |  339 lines

  1. DOCUMENT:Q105189  14-OCT-1993  [W_NT]
  2. TITLE   :Contents of READTOC.DOC for Kodak Photo CD Compatibility
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8. ----------------------------------------------------------------------
  9. The information in this article applies to:
  10.  
  11.  - Microsoft Windows NT operating system version 3.1
  12.  - Microsoft Windows NT Advanced Server version 3.1
  13. ----------------------------------------------------------------------
  14.  
  15. SUMMARY
  16. =======
  17.  
  18. In an effort to help facilitate the compatibility of a Kodak
  19. Multisession Photo CD with Windows NT and future Windows operating
  20. systems, this document will help outline the necessary details to
  21. enable this compatibility through the Read TOC command.
  22.  
  23. If the drive's firmware does not or cannot implement the Read TOC
  24. Command in this way, a filter driver needs to be written to enable
  25. your CD-ROM drives to be multisession-capable.
  26.  
  27. For additional information on the Kodak Photo CD and Windows NT, query
  28. on the following words in the Microsoft Knowledge Base:
  29.  
  30.    kodak and windows and nt and support
  31.  
  32. MORE INFORMATION
  33. ================
  34.  
  35. To identify the Photo CD TOC information, the most significant two
  36. bits of the control field of the CDB of the Read TOC Command has been
  37. assigned to identify this information. In order to maintain
  38. compatibility with ANSI SCSI-2 specification, the Format Field is
  39. assigned to 00b for SCSI-II compatible read TOC commands. For handling
  40. the Kodak Photo CD multisession, format 01b can be used. This will
  41. give the start address of the last session which is required when the
  42. driver calculates the offset to the file descriptor block of the last
  43. session. Format 10b is used to return all Q subcode data in the TOC
  44. area.
  45.  
  46. Please enable ALL of the Formats to ensure future compatibility. Mode
  47. 01 must report a data length of 0A for a multisession-capable drive.
  48. And Mode 00 must report a data length greater than 0A.
  49.  
  50. A mode 01 TOC command that returns a data length of greater than 0A
  51. will be considered incapable of reading multisession discs. The data
  52. length represents the length of the returned data not including the
  53. size of the data length field.
  54.  
  55. READ TOC Command (43h)
  56.  
  57. ======================================================================
  58. Bit  |   7   |   6   |   5   |   4   |   3   |   2   |   1   |   0   |
  59. Byte |       |       |       |       |       |       |       |       |
  60. ======================================================================
  61.  0   |                   Operation Code (43h)                        |
  62. -----|---------------------------------------------------------------|
  63.  1   | Logical Unit Number   |       Reserved        |  MSF  | Rsvd  |
  64. -----|---------------------------------------------------------------|
  65.  2   |                               Reserved                        |
  66. -----|---------------------------------------------------------------|
  67.  3   |                               Reserved                        |
  68. -----|---------------------------------------------------------------|
  69.  4   |                               Reserved                        |
  70. -----|---------------------------------------------------------------|
  71.  5   |                               Reserved                        |
  72. -----|---------------------------------------------------------------|
  73.  6   |                Starting Track/Session Number                  |
  74. -----|---------------------------------------------------------------|
  75.  7   |   (MSB)                                                       |
  76. -----|---                   Allocation Length                     ---|
  77.  8   |                                                       (LSB)   |
  78. -----|---------------------------------------------------------------|
  79.  9   |   Format      |            Control Byte                       |
  80. ======================================================================
  81.  
  82. The READ TOC command requests the target to transfer the table of
  83. contents (TOC) data to the initiator.
  84.  
  85. This command is modified from the SCSI-2 Read TOC command with the
  86. addition of the Format field and the Session Number field to support a
  87. multisession disc.
  88.  
  89. The following are definitions for the Format Field:
  90.  
  91. Format:
  92.  
  93. 00b
  94.  
  95. Same definition as in SCSI-2. The start Track/Session Number field
  96. specifies the starting track number for which the data will be
  97. returned. For multisession Photo CD, this command will return the TOC
  98. data for all sessions.
  99.  
  100. 01b
  101.  
  102. This format returns the first session number, last session number and
  103. the last session starting address. In this format, the Starting
  104. Track/Session Number field is reserved and should be set to 00h.
  105.  
  106. NOTE: This format provides the host to access the last session
  107. starting address quickly.
  108.  
  109. 10b
  110.  
  111. This format returns all Q subcodes data in the lead in (TOC) area
  112. starting from a specified session number as specified in the Session
  113. Number field. In this mode, the drive will support Q Subcode Point
  114. field value of A0h, A1h, A2h, Track numbers, B0h, B1h, B2h, B3h, B4h,
  115. and C0h.
  116.  
  117. 11b
  118.  
  119. Reserved.
  120.  
  121. The starting track field specifies the starting track number for which
  122. the TOC data will be returned. The data is returned in contiguous
  123. ascending order. Valid values for the starting track field are 0h to
  124. 63h. A value of AAh requests that the starting address of the lead out
  125. area be returned. If this value is zero, the table of contents data
  126. will begin with the first track on the disc.
  127.  
  128. If the track number field is not valid for he disc inserted, the
  129. command will be terminated with a CHECK CONDITION status. The sense
  130. key is set to ILLEGAL REQUEST. The additional sense code is set to
  131. ILLEGAL VALUE in CDB.
  132.  
  133. NOTE:
  134.  
  135. CD-I disc format does not have track descriptor for CD-I tracks. It
  136. has track descriptor for each CD-DA tracks.
  137.  
  138. For Format = 00b, the returned data of READ TOC Command is defined as
  139. follows.
  140.           
  141. TOC Data with Format Field = 00b
  142.  
  143. ======================================================================
  144.  0 |     (MSB)                                                       |
  145. ---|--------------         TOC Data Length                -----------|
  146.  1 |                                                         (LSB)   |
  147. ---|-----------------------------------------------------------------|
  148.  2 |                       First Track Number                        |
  149. ---|-----------------------------------------------------------------|
  150.  3 |                       Last Track Number                         |
  151. ======================================================================
  152.  
  153. TOC Track Descriptor(s)
  154.  
  155. ======================================================================
  156.  0 |                       Reserved                                  |
  157. ---|-----------------------------------------------------------------|
  158.  1 |            ADR              |               Control             |
  159. ---|-----------------------------------------------------------------|
  160.  2 |                       Track Number                              |
  161. ---|-----------------------------------------------------------------|
  162.  3 |                       Reserved                                  |
  163. ---|-----------------------------------------------------------------|
  164.  4 |    (MSB)                                                        |
  165. ---|----                   Absolute CD-ROM Address               ----|
  166.  7 |                                                        (LSB)    |
  167. ======================================================================
  168.  
  169. The TOC data returned is a four-byte header followed by one or more
  170. TOC track descriptors. The last track descriptor is for the lead-out
  171. area. The format of the CD address is determined by the MSF bit in the
  172. CDB.
  173.  
  174. The TOC data length specifies the length in bytes of the available
  175. table of contents data. The value of TOC data length does not include
  176. TOC data length field itself.
  177.  
  178. The first track number field indicates the first track number in the
  179. table of contents.
  180.  
  181. The last track number field indicates the last track number in the
  182. table of contents before the lead-out track number.
  183.  
  184. Implementor's Note:
  185.  
  186. A disc may start at any track number greater than zero. The track
  187. numbers between the first track number and the last track number are
  188. in contiguous ascending order, except for the lead-out track which has
  189. a track number of AAh.
  190.  
  191. The ADR field is defined in the Read Q Sub-Channel command.
  192.  
  193. The control field indicates the attributes of the track. It is defined
  194. in the Read Q Sub-channel command.
  195.  
  196. The track number field indicates the track number for which the data
  197. in the TOC track descriptor is valid.
  198.  
  199. The absolute CD-ROM address contains the address of the first block
  200. with user information for that track number as read from the table of
  201. contents. An MSF bit of zero indicates that the absolute CD-ROM
  202. address field contains a logical block address. An MSF bit of one
  203. indicates the absolute CD-ROM address field contains an MSF address.
  204.  
  205. Implementor's Note:
  206.  
  207. The starting logical block address value recovered from the TOC has a
  208. tolerance of zero for data tracks and plus or minus 75 CD sectors for
  209. audio tracks. This tolerance is multiplied by a factor dependent on
  210. the logical block length.
  211.  
  212. For format = 01b, the returned data of READ TOC command is defined as
  213. follows:
  214.  
  215. TOC Data with Format Field = 01b
  216.  
  217. ======================================================================
  218.  0 |    (MSB)                                                        |
  219. ---|-------------           TOC Data Length                   -------|
  220.  1 |                        (0Ah)                             (LSB)  |
  221. ---|-----------------------------------------------------------------|
  222.  2 |                        First Session Number                     |
  223. ---|-----------------------------------------------------------------|
  224.  3 |                        Last Session Number                      |
  225. ======================================================================
  226.  
  227. TOC Track Descriptor
  228.  
  229. ======================================================================
  230.  0 |                        Reserved                                 |
  231. ---|-----------------------------------------------------------------|
  232.  1 |             ADR              |             Control              |
  233. ---|-----------------------------------------------------------------|
  234.  2 |               First Track Number in Last Session                |
  235. ---|-----------------------------------------------------------------|
  236.  3 |                        Reserved                                 |
  237. ---|-----------------------------------------------------------------|
  238.  4 |    (MSB)                                                        |
  239. ---|-----              Absolute CD-ROM Address                -------|
  240.  7 |                   of First Track in Last Session         (LSB)  |
  241. ======================================================================
  242.  
  243. For Format - 10b, the returned data of READ TOC Command is defined as
  244. follows:
  245.  
  246. TOC Data with Format Field = 10b
  247.  
  248. ======================================================================
  249. 0  |   (MSB)                                                         |
  250. ---|-----------              TOC Data Length             ------------|
  251.  1 |                                                          (LSB)  |
  252. ---|-----------------------------------------------------------------|
  253.  2 |                         First Session Number                    |
  254. ---|-----------------------------------------------------------------|
  255.  3 |                         Last Session Number                     |
  256. ======================================================================
  257.  
  258. TOC Track Descriptor(s)
  259.  
  260. ======================================================================
  261.  0 |                         Session Number                          |
  262. ---|-----------------------------------------------------------------|
  263.  1 |           ADR                 |              Control            |
  264. ---|-----------------------------------------------------------------|
  265.  2 |                         Byte 1 or TNO                           |
  266. ---|-----------------------------------------------------------------|
  267.  3 |                         Byte 2 or Point                         |
  268. ---|-----------------------------------------------------------------|
  269.  4 |                         Byte 3 or Min                           |
  270. ---|-----------------------------------------------------------------|
  271.  5 |                         Byte 4 or Sec                           |
  272. ---|-----------------------------------------------------------------|
  273.  6 |                         Byte 5 or Frame                         |
  274. ---|-----------------------------------------------------------------|
  275.  7 |                         Byte 6 or Zero                          |
  276. ---|-----------------------------------------------------------------|
  277.  8 |                         Byte 7 or Min                           |
  278. ---|-----------------------------------------------------------------|
  279.  9 |                         Byte 8 or PSec                          |
  280. ---|-----------------------------------------------------------------|
  281.  10|                         Byte 9 or PFrame                        |
  282. ======================================================================
  283.  
  284. For Format field of 10b, the drive should return TOC data for Q-
  285. subcode modes (ADR field) 1 and 5 (except mode 5, point 1 through 40)
  286. in the lead in area.
  287.  
  288. The First Session Number is equal to the Last Session Number for
  289. single session discs.
  290.  
  291. The returned TOC data of a multisession disc is arranged in ascending
  292. order of the session number. The TOC data within a session is arranged
  293. in the order of Q Subcode Point field value of A0h, A1h, A2h, Track
  294. Numbers, B0h, B1h, B2h, B3h, B4h, and C0h.
  295.  
  296. REFERENCES
  297. ==========
  298.  
  299. Kodak Photo CD Multisession Compatibility with Microsoft Windows NT
  300. and future Windows Operating Systems. (READTOC.DOC)
  301. ⌐ 1993 Microsoft Corporation. All rights reserved.
  302. DRAFT  1.1 - July 1993:
  303.  
  304. Information contained in this document represents the current view of
  305. Microsoft Corporation on the issues discussed as of the date of
  306. publication. Because Microsoft must respond to changing market
  307. conditions, it should not be interpreted to be a commitment on the
  308. part of Microsoft, and Microsoft cannot guarantee the accuracy of any
  309. information presented after the date of publication. This document is
  310. for informational purposes only.  Neither Microsoft or its suppliers
  311. make any warranties, expressed or implied, in this document. Microsoft
  312. is a registered trademark and Windows and Windows NT are trademarks of
  313. Microsoft Corporation. Kodak is a registered trademark and Photo CD is
  314. a trademark of Eastman Kodak Company.
  315.  
  316. The products included here are manufactured by vendors independent of
  317. Microsoft; we make no warranty, implied or otherwise, regarding these
  318. products' performance or reliability.
  319.  
  320. Additional reference words: 3.10 3rdparty 3rd-party third-party third
  321. party
  322. KBCategory:
  323. KBSubcategory: hrdwr
  324.  
  325. =============================================================================
  326.  
  327. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  328. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  329. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  330. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  331. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  332. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  333. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  334. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  335. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  336. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  337. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  338.  
  339. Copyright Microsoft Corporation 1993.